package org.soc.timesheet.server.domain.service;
import java.util.List;
import org.soc.timesheet.domain.SubProjects;
import org.soc.timesheet.domain.Timesheet;
import org.springframework.roo.addon.layers.service.RooService;

@RooService(domainTypes = { org.soc.timesheet.domain.Timesheet.class })
public interface TimesheetService {
	
	public List<Timesheet> findByIdSubProjectIn(List<SubProjects> subProjects);

	public void deleteBySubproject(int idSubProject);

	public abstract long countAllTimesheets();


	public abstract void deleteTimesheet(Timesheet timesheet);


	public abstract Timesheet findTimesheet(String id);


	public abstract List<Timesheet> findAllTimesheets();


	public abstract List<Timesheet> findTimesheetEntries(int firstResult, int maxResults);


	public abstract void saveTimesheet(Timesheet timesheet);


	public abstract Timesheet updateTimesheet(Timesheet timesheet);

}
